package com.infore.remoteControl.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.infore.remoteControl.entity.instructionsEntity.InstructionsData;
import com.infore.remoteControl.remoteService.IDataReceivingService;
import com.infore.remoteControl.service.InstructionsSendStrategyService;
/**
 * 延时发送策略
 * @author Cold
 *
 */
@Service
public class DelayedSendStrategy implements InstructionsSendStrategyService {
	
	@Autowired
	IDataReceivingService iDataReceivingService;
	
	@Override
	public void send(InstructionsData instructionsData) {
		Runnable runnable = new Runnable() {
			
			@Override
			public void run() {
				System.out.println("延时发送策略线程Runing");
				
			}
		};
		Thread thread = new Thread(runnable);
		thread.start();
		
	}

}
